package com.example.homegroup.seckill.binds;


import androidx.databinding.BindingAdapter;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;

public class SeckillBind {

    @BindingAdapter(value = {"seckilladapter"},requireAll = true)
    public static void secKillRVBind(RecyclerView recyclerView, BaseQuickAdapter seckilladapter){
        LinearLayoutManager manager = new LinearLayoutManager(recyclerView.getContext());
        manager.setOrientation(LinearLayoutManager.VERTICAL);
        recyclerView.setLayoutManager(manager);
        recyclerView.setAdapter(seckilladapter);
    }
}
